def main():
    res1 = sum(x**2 for x in range(1,101))
    res2 = sum(x for x in range(1,101))**2
    return res2 - res1

print 'result is: %d' % main()
